import React, { Component } from 'react'
import { StyleSheet, View, Text } from 'react-native'

import { connect } from 'react-redux'
import HeaderDefault from '../../components/header/HeaderDefault'
import EveFatherDetail from './EveFatherDetail'
class EveTimingTestDetail extends Component {
  constructor(props) {
    super(props)

    this.state = {}
  }
  static navigationOptions = ({ navigation }) => ({
    header: (
      <HeaderDefault
        rightRitle="提交"
        rihghtBtnOnPress={() => {
          navigation.state.params.clickRightMethod()
        }}
        backBtnOnPress={navigation.goBack}
        title="计时测试"
      />
    )
  })

  componentDidMount() {
    this.props.navigation.setParams({ clickRightMethod: this._ritBtn })
  }

  _ritBtn = () => {}

  render() {
    return (
      <EveFatherDetail pInfo={this.props.navigation.state.params.pinfo}>
        <Text>345</Text>
      </EveFatherDetail>
    )
  }
}
const styles = StyleSheet.create({})

function select(store) {
  return { user_info: store.userInfo.user_info }
}

export default connect(select)(EveTimingTestDetail)
